/*
 * 功能:副本传送功能
 * Form:芬芬时尚潮流
 */

var 路西德 = "#fMap/MapHelper.img/mark/Lacheln#";
var 斯乌 = "#fMap/MapHelper.img/mark/Edelstein#";
var 黛米安 = "#fMap/MapHelper.img/mark/fallenWorldTree#";
var 狮子王 = "#fMap/MapHelper.img/mark/VanLeon#";
var 阿卡 = "#fMap/MapHelper.img/mark/Akairum#";
var 麦格纳斯 = "#fMap/MapHelper.img/mark/Magnus#";
var 希拉 = "#fMap/MapHelper.img/mark/Hilla#";
var 乌鲁斯 = "#fMap/MapHelper.img/mark/JP_Momijigaoka#";
var 新叶 = "#fMap/MapHelper.img/mark/NLC#";
var 希纳斯 = "#fMap/MapHelper.img/mark/Signus#";
var 梦幻乐园 = "#fMap/MapHelper.img/mark/FantasticPark#";
var 贝勒德 = "#fMap/MapHelper.img/mark/GiantVellud#";
var 品克冰 = "#fMap/MapHelper.img/mark/PinkBean#";
var 黑龙 = "#fMap/MapHelper.img/mark/Hontale#";
var 扎昆 = "#fMap/MapHelper.img/mark/Zakum#";
var 闹钟 = "#fMap/MapHelper.img/mark/Papulatus#";
var 鱼王 = "#fMap/MapHelper.img/mark/Pianus#";
var 世界树 = "#fMap/MapHelper.img/mark/rootabyss#";
var z13 = "#fMap/MapHelper.img/weather/guildBless/8#"; //礼物红
var 艾菲尼亚 = "#fMap/MapHelper.img/mark/EilnForest#";
var 浓姬 = "#fMap/MapHelper.img/mark/JP_Nohime#";
var 森兰丸 = "#fMap/MapHelper.img/mark/Ranmaru#";
var 天狗 = "#fMap/MapHelper.img/mark/Kite#";
var 蝙蝠魔 = "#fMap/MapHelper.img/mark/Balog#";
var 瓦拉那 = "#fMap/MapHelper.img/mark/GoldTempleTH#";

//地图参数
var 蝙蝠魔Map = 105100100;//ok
var 鱼王Map = 230040420;//ok
var 闹钟Map = 220080000;//ok
var 暴力熊Map = 222130200;//ok
var 扎昆Map = 211042200;//ok
var 黑龙Map = 240040700;//ok
var PbMap = 270050000;//ok
var 世界树Map = 105200000;//ok
var 希纳斯Map = 271030600;//ok
var 钻机Map = 703020000;//ok
var 贝勒德Map = 863000100;//ok
var 乌鲁斯Map = 970072200;//ok
var 狮子王Map = 211070000;//ok
var 希拉Map = 262030000;//ok
var 阿卡Map = 272030300;//ok
var 麦格纳斯Map = 401053002;//ok
var 黛米安Map = 105300303;//ok
var 斯乌Map = 310070490;//ok
var 路西德Map = 450004000;//ok


var 艾菲尼亚Map = 300030300;//ok
var 森兰丸Map = 807300100;//ok
var 天狗Map = 800010200;//ok
var 浓姬Map = 811000999;//ok
var 瓦拉那Map = 252030000;//ok

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			var text = "  #b[" + cm.getServerName() + "·常规BOSS挑战]- - - - - - - - - >" + z13 + "\r\n#l";
			text += "#b#L21#" + 艾菲尼亚 + "#r#e艾菲尼亚" + "#e#d 妖精女皇之首\r\n#l";
			text += "#b#L22#" + 蝙蝠魔 + "#r#e巨大蝙蝠魔" + "#e#d 黑暗禁地的囚禁者\r\n#l";			
			text += "#b#L0#" + 鱼王 + "#r#e皮亚努斯" + "#e#d 深海鱼王·挑战\r\n#l";
			text += "#b#L1#" + 闹钟 + "#r#e帕拉斯图" + "#e#d 扭曲时间·挑战\r\n#l";
			text += "#b#L2#" + 梦幻乐园 + "#r#e梦幻乐园" + "#e#d 暴力熊·辛巴狮\r\n#l";
			text += "#b#L23#" + 瓦拉那 + "#r#e泰国人妖拉瓦那" + "#e#d 扎昆的私生子\r\n#l";			
			text += "#b#L3#" + 扎昆 + "#r#e火眼之眼" + "#e#d 普通·进阶·扎昆挑战\r\n#l";
			text += "#b#L4#" + 黑龙 + "#r#e龙族覆灭" + "#e#d 普通·进阶·黑龙王挑战\r\n#l";
			text += "#b#L5#" + 品克冰 + "#r#e时间の宠" + "#e#d 普通·进阶·品克缤挑战\r\n#l";
			text += "#b#L6#" + 世界树 + "#r#e四大天王" + "#e#d 半半·女皇·小丑·贝伦挑战\r\n#l";
			text += "#b#L7#" + 新叶 + "#r#e外空掠夺" + "#e#d 外星钻机挑战\r\n#l";
			text += "#b#L8#" + 希纳斯 + "#r#e未来之门" + "#e#d 堕落骑士团·希纳斯挑战\r\n#l";
			text += "#b#L9#" + 贝勒德 + "#r#e伪装恐惧" + "#e#d 贝·勒德挑战\r\n#l";
			text += "#b#L10#" + 乌鲁斯 + "#r#e团战围剿" + "#e#d 霸王·乌鲁斯挑战\r\n#l";
			text += "  #b#n[黑魔法师·军团长]- - - - - - - - - - - >" + z13 + "\r\n#l";
			text += "#b#L11#" + 狮子王 + "#b#e中二の狮子王\r\n#l";
			text += "#b#L12#" + 希拉 + "#b#e傲娇の魔女希拉\r\n#l";
			text += "#b#L13#" + 阿卡 + "#b#e猥琐の蛇男阿卡伊勒\r\n#l";
			text += "#b#L14#" + 麦格纳斯 + "#b#e残暴の夺取者麦格纳斯\r\n#l";
			text += "#b#L15#" + 黛米安 + "#b#e迷失の能力追求者黛米安\r\n#l";
			text += "#b#L16#" + 斯乌 + "#b#e失控の超变态兵器斯乌 \r\n#l";
			text += "#b#L17#" + 路西德 + "#b#e噩梦の超控者路西德 \r\n#l";
			text += "#b#L18#" + 天狗 + "#b#e乌鸦之殇 - 鸦天狗 \r\n#l";
			text += "#b#L19#" + 浓姬 + "#b#e织田信长的内阁夫人 - 浓姬 \r\n#l";
			text += "#b#L20#" + 森兰丸 + "#b#e阴阳术士 - 森兰丸 \r\n#l";
			cm.sendSimple(text);
		} else if (status == 1) {
			switch (selection) {
			case 0:
				cm.dispose();
				cm.warp(鱼王Map);
				break;
			case 1:
				cm.dispose();
				cm.warp(闹钟Map);
				break;
			case 2:
				cm.dispose();
				cm.warp(暴力熊Map);
				break;
			case 3:
				cm.dispose();
				cm.warp(扎昆Map);
				break;
			case 4:
				cm.dispose();
				cm.warp(黑龙Map);
				break;
			case 5:
				cm.dispose();
				cm.warp(PbMap);
				break;
			case 6:
				cm.dispose();
				cm.warp(世界树Map);
				break;
			case 7:
				cm.dispose();
				cm.warp(钻机Map);
				break;
			case 8:
				cm.dispose();
				cm.warp(希纳斯Map);
				break;
			case 9:
				cm.dispose();
				cm.warp(贝勒德Map);
				break;
			case 10:
				cm.dispose();
				cm.warp(乌鲁斯Map);
				break;
			case 11:
				cm.dispose();
				cm.warp(狮子王Map);
				break;
			case 12:
				cm.dispose();
				cm.warp(希拉Map);
				break;
			case 13:
				cm.dispose();
				cm.warp(阿卡Map);
				break;
			case 14:
				cm.dispose();
				cm.warp(麦格纳斯Map);
				break;
			case 15:
				cm.dispose();
				cm.warp(黛米安Map);
				break;
			case 16:
				cm.dispose();
				cm.warp(斯乌Map);
				break;
			case 17:
				cm.dispose();
				cm.warp(路西德Map);
				break;
			case 18:
				cm.dispose();
				cm.warp(天狗Map);
				break;
			case 19:
				cm.dispose();
				cm.warp(浓姬Map);
				break;
			case 20:
				cm.dispose();
				cm.warp(森兰丸Map);
				break;
			case 21:
				cm.dispose();
				cm.warp(艾菲尼亚Map);
				break;
			case 22:
				cm.dispose();
				cm.warp(蝙蝠魔Map);
				break;		
			case 23:
				cm.dispose();
				cm.warp(瓦拉那Map);
				break;					
			default:
				cm.sendOk("管理员正在准备中.请期待");
				cm.dispose();
				break;
			}
		}
	}
}
